package freejim.icu.highschoolhealthstatuspost;


import org.junit.jupiter.api.Test;

import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {


    @Test
    public void csvok() throws IOException {
        String csv_content = "No,Name\n1,陈";
        FileWriter out = new FileWriter("covid19.csv");
        out.write(csv_content);
        out.close();
    }

    @Test
    void getDate(){
        SimpleDateFormat formatter= new SimpleDateFormat("yyyy/MM/dd");
        Date date = new Date(System.currentTimeMillis());
        System.out.println(formatter.format(date));

    }



}
